package lhdx9;

public class Airliner extends Aircraft {
    private int seat;
    public Airliner(String name, int deadLoad, int altitude,int seat) {
        super(name, deadLoad, altitude);
        this.seat=seat;
    }

    public int getSeat() {
        return seat;
    }

    public void setSeat(int seat) {
        this.seat = seat;
    }
    public void takeoff(){
        System.out.println(getName()+"飞机载客量"+seat+"人");
        super.takeoff();
    }
}
